import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 理发师列表分页查询
export const findBarberListPage = query => {
    return request({
        url: baseRequest_url+'/admin/barber/findBarberListPage',
        method: 'get',
		params: query,
    });
};
// 理发师详情查询
export const findBarberInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/barber/findBarberInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增编辑理发师
export const addBarber = data => {
    return request({
        url: baseRequest_url+'/admin/barber/saveBarber',
        method: 'post',
		data: data,
    });
};
// 新增编辑理发师
export const saveBarber = data => {
    return request({
        url: baseRequest_url+'/admin/barber/saveBarber',
        method: 'put',
		data: data,
    });
};
// 删除理发师
export const deleteBarberById = data => {
    return request({
        url: baseRequest_url+'/admin/barber/deleteBarberById/'+data,
        method: 'post',
		data: data,
    });
};